package com.fintech.third.dao.log;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.fintech.third.model.reqlog.IntDataQueryLog;

public interface IntDataQueryLogMapper {
    int deleteByPrimaryKey(Long id);

    int insert(IntDataQueryLog record);

    int insertSelective(IntDataQueryLog record);

    IntDataQueryLog selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(IntDataQueryLog record);

    int updateByPrimaryKey(IntDataQueryLog record);
    
    IntDataQueryLog selectExistRecord(@Param("method") String method,@Param("responseCode") int responseCode,@Param("loanId") String loanId);
    
    
    public List<Map<String,Object>> selectAll(Map<String,String> msg);

	public List<Map<String, Object>> selectByloanIdAndSerialNum(@Param("loanId")String loanId,@Param("serialNum")String serialNum);
    
	public List<IntDataQueryLog> intDataQueryLogLoanId(@Param("loanId")String loanId);
	
	/**
	 * 获取征信报告提交后变更的serialnum
	 * @param loanId
	 * @return
	 */
	String selectMarvelsSerialNum(String loanId);
}